<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">    
    <title>details_transaction</title>
    <!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  <body>
  	<s:include value="/include/header.jsp"></s:include>
  	<s:if test="%{#session.userId != null}">
  	<table>
	<tr>
	<td><s:text name="Transaction ID" /></td>
	<td><s:property value="transaction.trId" /></td>
	</tr><tr>
  	<td><s:text name="Service Contract ID" /></td>
  	<td><a href="<s:url includeParams="none" namespace="/" action="user/details_service_contract" >
  					<s:param name="scId"><s:property value="transaction.serviceContract.scId" /></s:param></s:url>">
		<s:property value="transaction.serviceContract.scId" />
	</a></td>
	</tr><tr>
	<td><s:text name="Creation Time" /></td>
	<td><s:property value="transaction.trDate"/></td>
	</tr>
	<!-- <tr>
    <td><s:text name="Transaction Status" /></td>
    <td><s:property value="transaction.trStatus" />
	<s:form action="user/edit_tr_status.ra" >
    	<input type="hidden" name="edit_id" id="edit_id" value="<s:property value="transaction.trId" />"/>
    	<s:submit value="%{getText('record.edit_status')}" />
    </s:form></td>
    </tr> --><tr>
  	<td><s:text name="Transaction Type" /></td>
  	<td><s:property value="transaction.trType" /></td>
  	</tr><tr>
  	<td><s:text name="Description" /></td>
  	<td><s:property value="transaction.trDescription" /></td>
  	</tr></table>
  	<a href="<s:url includeParams="none" namespace="/" action="user/go_add_bid" >
  					<s:param name="trId"><s:property value="transaction.trId" /></s:param></s:url>">
		<s:text name="create_bid" />
	</a>
	<br>			
	<a href="<s:url includeParams="none" namespace="/" action="user/show_the_BDs" >
					<s:param name="trId"><s:property value="transaction.trId" /></s:param></s:url>">
		<s:text name="show_the_BDs" />
	</a>
	<br/>			
	<a href="<s:url includeParams="none" namespace="/" action="user/go_add_file" >
  					<s:param name="scId"><s:property value="transaction.serviceContract.scId" /></s:param>
  					<s:param name="trId"><s:property value="transaction.trId" /></s:param>
  					<s:param name="BId">0</s:param></s:url>">
		<s:text name="create_file" />
	</a>
	<br>
	<a href="<s:url includeParams="none" namespace="/" action="user/show_the_files" >  					
  					<s:param name="scId"><s:property value="transaction.serviceContract.scId" /></s:param>
  					<s:param name="trId"><s:property value="transaction.trId" /></s:param>
  					<s:param name="BId">0</s:param></s:url>">
		<s:text name="show_the_files" />
	</a>
	<br>
	<a href="<s:url includeParams="none" namespace="/" action="user/show_the_TRs" >
					<s:param name="scId"><s:property value="transaction.serviceContract.scId" /></s:param></s:url>">
		<s:text name="backto_the_TRs" />
	</a>
	<br/>
	</s:if>
  </body>
</html>
